import 'package:flutter/material.dart';

class IndexRecommendItem{

  final String title;

  final String image;

  final Function(BuildContext context) onTap;

  IndexRecommendItem(this.title, this.image, this.onTap);
}


List<IndexRecommendItem> indexItem = [
  IndexRecommendItem('项目订单', 'images/xiang_mu.png', (context) => {
    Navigator.of(context).pushNamed('/add')
  }),IndexRecommendItem('商品订单', 'images/shang_pin.png', (context) => {
    Navigator.of(context).pushNamed('chat')
  }),IndexRecommendItem('商品', 'images/shangpin.png', (context) => {
    Navigator.of(context).pushNamed('login')
  }),IndexRecommendItem('项目', 'images/xiangmu.png', (context) => {
    Navigator.of(context).pushNamed('login')
  }),
];
